package tt.dz.service.middleware;

import java.util.Map;
//拼装报文公用服务类 OMS下发
public interface EncapsulationService {
	//str中包含协议类型和协议版本号。
	//6.1	注册签到
	public String loginReturn(Map<String,String> map);
	public String logoutReturn(Map<String,String> map);
	//6.2	控制指令
	public String stopCharge(Map<String,String> map);
	public String startCharge(Map<String, String> map);
	public String startChargeReturn(Map<String,String> map);
	public String stopChargeReturn(Map<String,String> map);
	public String bespeak(Map<String,String> map);
	public String cancelBespeak(Map<String,String> map);
	public String cancelBespeakReturn(Map<String,String> map);
	public String restartCharger(Map<String, String> map);
	//6.2.6	固件更新指令
	public String updateFirmware(Map<String, String> map);
	//6.3设置指令
	public String findHardwareServerIp(Map<String,String> map);
	public String setHardwareServerIp(Map<String, String> map);
	public String setTime(Map<String, String> map);
	public String findRate(Map<String, String> map);
	public String setRate(Map<String, String> map);
	public String setQrCode(Map<String, String> map);
	public String findWhiteList(Map<String, String> map);
	public String setWhiteList(Map<String, String> map);
	public String setParam(Map<String, String> map);
	//6.4  交互指令  
	//1.1 中的5.4.1	充电状态召集      
	public String summon(Map<String, String> map);//充电状态召集      
	public String requestPayByCardReturn(Map<String, String> map);//刷卡请求
	//6.5	充电设备主动上传指令
	public String uploadHeartReturn(Map<String, String> map);
	public String uploadChangeReturn(Map<String, String> map);//遥变
	public String uploadFirmwareStatusReturn(Map<String, String> map);//6.5.3	固件更新状态上传
	public String uploadBillReturn(Map<String, String> map);//6.5.4	账单主动上传
//	public String uploadChangeDataReturn(Map<String, String> map);//6.5.5	充电数据上传
//	public String uploadBatteryDataReturn(Map<String, String> map);//6.5.6	电池详情报文（可选）
	
	//ev3c 2.0专用
	public String chargerRegister(Map<String, String> map);
	public String chargerUnRegister(Map<String, String> map);
	public String chargerLogin(Map<String, String> map);
	public String chargerLogout(Map<String, String> map);
	public String uploadHeart(Map<String, String> map);
	public String uploadBill(Map<String, String> map);
	public String uploadChargeData(Map<String, String> map);
	public String uploadSuddenChangeReturn(Map<String, String> map); // 电桩主动上传突变,刷卡报文回复
}
